gtkimcontextime.c: Fix call to gtk_style_context_get()
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Nov 2017 07:30:20 +0000 (15:30 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 21 Nov 2017 06:16:06 +0000 (14:16 +0800)
The state argument was removed in commit 1518fe0 (API: stylecontext:
Remove state argument from getters), but we missed updating this file
until commit 5b94fe6 (stylecontext: Make first property name explicit),
as the compiler did not issue any warnings on the (now-defunct) usage.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

modules/input/gtkimcontextime.c

index 704dc58b312cf05b5e777839c2b757d6683753f4..b11f601965fad26026808ebdd71594b504cd7e51 100644 (file)
@@ -955,7 +955,6 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context)
   gtk_style_context_save (style);
   gtk_style_context_set_state (style, GTK_STATE_FLAG_NORMAL);
   gtk_style_context_get (style,
-                         gtk_style_context_get_state (style),
                          "font",
                          &font_desc,
                          NULL);